import { getProtoBufType } from '@/utils/proto'

export const keypointDef = (getProtoBufType('Keypoints') as any).fieldsArray

// keypoints连接点
export const limbSeq = [
  [0, 1],
  [0, 2],
  [1, 3],
  [2, 4],
  [5, 6],
  [5, 7],
  [6, 8],
  [7, 9],
  [8, 10],
  [5, 11],
  [6, 12],
  [11, 13],
  [12, 14],
  [13, 15],
  [14, 16],
  [15, 17],
  [15, 18],
  [15, 19],
  [16, 20],
  [16, 21],
  [16, 22],
  [0, 23],
  [9, 24],
  [10, 25],
  [30, 31],
  [1, 32],
  [1, 33],
  [2, 34],
  [2, 35],
  [9, 26],
  [9, 28],
  [10, 27],
  [10, 29]
]
// keypoints连接线颜色
export const limbColors = [
  [255, 0, 0],
  [255, 85, 0],
  [255, 170, 0],
  [255, 255, 0],
  [170, 255, 0],
  [85, 255, 0],
  [0, 255, 0],
  [0, 255, 85],
  [0, 255, 170],
  [0, 255, 255],
  [0, 170, 255],
  [0, 85, 255],
  [0, 0, 255],
  [85, 0, 255],
  [170, 0, 255],
  [255, 0, 255],
  [255, 0, 170],
  [255, 0, 85],
  [255, 0, 170],
  [255, 0, 85],
  [255, 0, 170],
  [255, 0, 85],
  [255, 170, 0],
  [255, 170, 0],
  [255, 0, 170],
  [255, 0, 255],
  [255, 0, 170],
  [255, 0, 85],
  [255, 0, 170],
  [255, 0, 255],
  [255, 0, 170],
  [255, 0, 85],
  [255, 0, 170]
]
// box cls_id 颜色
export const clsidColors = [
  '#76da91',
  '#7898e1 ',
  '#9987ce',
  '#f89588',
  '#00CDCD',
  '#191970',
  '#FFD700',
  '#8A2BE2',
  '#8B795E'
]
